package com.zrrd.fuxi._01_oop;

import org.junit.Test;

/**
 * @author WanJl
 * @version 1.0
 * @title Demo04
 * @description
 * @create 2023/11/19 11:47
 */
public class Demo04 {
    //成员内部类--是和方法平级的
    public class abc{

    }
    public void method(){
        //局部内部类
        class abc{

        }
    }
    //静态成员内部类
    public static class eee{

    }
    @Test
    public void method02(){
        //匿名内部类
        inter i = () -> System.out.println("哈哈哈哈");
        i.aaa();    //过把瘾就死

    }
}

interface inter{
    void aaa();
}